﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TiPort.TiEntityObjects;
using System.Xml.Serialization;
using TI;
using TiEntityObject.Common;

namespace TiEntityObject.Notification
{
    public class NotificationCompetitiveDocumentProvisioning 
    {
        public Int64 NotificationID { get; set; }

        [XmlElement("deliveryTerm")]
        public string  DeliveryTerm { get; set; }

        public long iDeliveryTerm { get { return Helper.Time.GetDateInMS(DeliveryTerm); } }

        [XmlElement("deliveryTerm2")]
        public string  DeliveryTerm2 { get; set; }

        public long iDeliveryTerm2 { get { return Helper.Time.GetDateInMS(DeliveryTerm2); } }

        [XmlElement("www")]
        public string WWW { get; set; }

        [XmlElement("deliveryProcedure")]
        public string DeliveryProcedure { get; set; }

        [XmlElement("deliveryPlace")]
        public string DeliveryPlace { get; set; }

        [XmlElement("guarantee")]
        public NotificationCompetitiveDocumentProvisioningGuarantee NotificationCompetitiveDocumentProvisioningGuarantee { get; set; }

    }
}

public class NotificationCompetitiveDocumentProvisioningGuarantee 
{
    [XmlElement("procedure")]
    public string procedure { get; set; }

    [XmlElement("settlementAccount")]
    public string settlementAccount { get; set; }

    [XmlElement("personalAccount")]
    public string personalAccount { get; set; }

    [XmlElement("amount")]
    public string amount { get; set; }

    [XmlElement("currency")]
    public Currency currency { get; set; }

    [LinkObjectAttribute(ChildFieldName = "code", IsDictionaryValue = true, ParentFieldName = "CurrencyID")]
    public string CurrencyID { get; set; }

  

}
